<?php
	
?>
	<script>
    <!--
		function clicked(e) {
			setcookie("page", e, $expire);
		}
	-->
    </script>
	<nav>
        <h2>Menu</h2>
        <ul>
            <li><a id="1" href="index.php" onclick="clicked(this.id)">Home</a></li>
            <li><a id="2" href="thepapers.php" onclick="clicked(this.id)">The Papers</a></li>
            <li><a id="3" href="gototown.php" onclick="clicked(this.id)">Go To Town</a></li>
            <li><a id="4" href="episodeguide.php" onclick="clicked(this.id)">Episode Guide</a></li>
            <li><a id="5" href="thecast.php" onclick="clicked(this.id)">The Cast</a></li>
            <li><a id="6" href="links.php" onclick="clicked(this.id)">Links</a></li>
        </ul>
        <?php
			$asins = array(
				"B0067Z8JW8",
				"B0067ZB2PO",
				"B00720T3RC",
				"B00650OY6A",
				"B0067ZHMC6",
				"B00651A4MW",
				"B00651YUKY",
				"B00652BZYC",
				"B006D9D3RE"
			);
			$randAd = rand(0,count($asins)-1);
		?>
        <div id="amazonBanner">
        	<iframe src="http://rcm-uk.amazon.co.uk/e/cm?t=40towers00-21&amp;o=2&amp;p=8&amp;l=as1&amp;asins=<?= $asins[$randAd]; ?>&amp;nou=1&amp;ref=tf_til&amp;fc1=963701&amp;IS2=1&amp;lt1=_blank&amp;m=amazon&amp;lc1=963701&amp;bc1=000000&amp;bg1=FFCC99&amp;f=ifr" style="width:120px;height:240px;"></iframe>
        </div>
    </nav>